/**
 * tvp5158param.h
 */

#ifndef __TVP5158PARAM_H__
#define __TVP5158PARM_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <stdbool.h>

enum CAPTURE_PARA{
	CAPTURE_PARA_NONE = 0,
    CAPTURE_PARA_BRIGHT_ADDR=0x10,
	CAPTURE_PARA_HUE_ADDR=0x14,
	CAPTURE_PARA_CONTRAST_ADDR=0x11,
	CAPTURE_PARA_SATURATION_ADDR=0x13,
};

typedef enum {
	TVP5158_TYPE_BRIGHT = 0x10,
	TVP5158_TYPE_CONTRAST = 0x11,
	TVP5158_TYPE_SATURATION = 0x13,
	TVP5158_TYPE_HUE = 0x14
} TVP5158ParamType;

enum {
    BRIGHT = 1,
    HUE = 2,
    CONTRAST = 4,
    SATURATION = 8,
};


#define     TVP5158_BRIGHT_DEFAULT          0x80
#define     TVP5158_CONTRAST_DEFAULT        0x80
#define     TVP5158_SATURATION_DEFAULT      0x80
#define     TVP5158_HUE_DEFAULT             0x00

/**
 * set tvp5158 parameter
 * @param
 *		type		input	parameter type
 *		value	input	parameter value
 * @return
 *		true when success, else false
 */
bool setTvp5158(TVP5158ParamType type, char value);
int SetCapTurePara( char *vPara );

#ifdef __cplusplus
}
#endif

#endif	// __TVP5158PARAM_H__

